<html>
<head><meta charset="utf-8"><title>removing tls requirement #62918 · wg-async-foundations · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/index.html">wg-async-foundations</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html">removing tls requirement #62918</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="179453817"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179453817" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179453817">(Oct 30 2019 at 17:05)</a>:</h4>
<p>So I was talking to <span class="user-mention" data-user-id="203289">@boats</span> today about possible steps for async-await and one of the things they brought up was removing the dependency on TLS, or <a href="https://github.com/rust-lang/rust/issues/62918" target="_blank" title="https://github.com/rust-lang/rust/issues/62918">#62918</a>. As far as we can tell, there is no hard blocker to this -- it requires us to add some form of argument to generators, but it doesn't require that this interface be "stable" (or close to stable). We also probably don't even need to have <em>syntax</em> for accessing a generator's argument, just a HIR node. Probably <span class="user-mention" data-user-id="127859">@Taylor Cramer</span> has the best idea of what's involved, or maybe <span class="user-mention" data-user-id="116466">@Zoxc</span>.</p>
<p>We had talked about the possibility of <span class="user-mention" data-user-id="203289">@boats</span> doing the impl work here, though it might be better to find them some other "first bug", not sure how complex this will be.</p>



<a name="179462393"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179462393" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Taylor Cramer <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179462393">(Oct 30 2019 at 18:31)</a>:</h4>
<p><span class="user-mention" data-user-id="217516">@Benjamin Brittain</span> had started working on this at one point</p>



<a name="179462403"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179462403" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Taylor Cramer <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179462403">(Oct 30 2019 at 18:31)</a>:</h4>
<p>there was a thread in <a class="stream" data-stream-id="131828" href="/#narrow/stream/131828-t-compiler">#t-compiler</a> about it</p>



<a name="179463217"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179463217" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179463217">(Oct 30 2019 at 18:38)</a>:</h4>
<p>(<a href="#narrow/stream/131828-t-compiler/topic/non-tls.20Async.2FAwait/near/173233549" title="#narrow/stream/131828-t-compiler/topic/non-tls.20Async.2FAwait/near/173233549">https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/non-tls.20Async.2FAwait/near/173233549</a>)</p>



<a name="179466186"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179466186" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179466186">(Oct 30 2019 at 19:06)</a>:</h4>
<p>ah yeah, I remember that</p>



<a name="179466193"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179466193" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179466193">(Oct 30 2019 at 19:06)</a>:</h4>
<p>I wonder how far they got :)</p>



<a name="179472190"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179472190" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Benjamin Brittain <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179472190">(Oct 30 2019 at 20:12)</a>:</h4>
<p>not very far &gt;_&lt;</p>
<p>Mostly because I moved coasts in the middle of that though</p>



<a name="179472221"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179472221" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Benjamin Brittain <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179472221">(Oct 30 2019 at 20:12)</a>:</h4>
<p>I did the lowering part - started hacking on the MIR</p>



<a name="179472290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179472290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Benjamin Brittain <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179472290">(Oct 30 2019 at 20:13)</a>:</h4>
<p>There was some level of disagreement about what the generator argument looked like</p>



<a name="179472366"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179472366" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Benjamin Brittain <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179472366">(Oct 30 2019 at 20:14)</a>:</h4>
<p>I'd like to resume tackling this is the near future - that being said I'd rather it gets fixed than I personally doing it</p>



<a name="179539032"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179539032" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> boats <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179539032">(Oct 31 2019 at 14:57)</a>:</h4>
<p>I think the solution is to make the MIR generator resume function take a second argument that is a <code>*mut task::Context</code>, and have the unstable generators just pass a null ptr</p>



<a name="179539113"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179539113" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> boats <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179539113">(Oct 31 2019 at 14:58)</a>:</h4>
<p>Rather than trying to have any sort of solution for resume arguments in generators</p>



<a name="179654316"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/removing%20tls%20requirement%20%2362918/near/179654316" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/removing.20tls.20requirement.20.2362918.html#179654316">(Nov 01 2019 at 18:58)</a>:</h4>
<p>I agree that something "quick and dirty" seems sufficient for now</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>